/*
 * @Description: 生产作业管理
 */
import zhreq from "@/api/axios";
export default {
  /**
   * @description: 获取所拥有生产作业列表
   * @param {String/Number} page
   * @param {String/Number} size
   */
  queryPageByCondition(params) {
    return zhreq.post('v3/agriculturalTask/agriculturalWorkType/queryPageByCondition', params)
  },
  /**
   * @description: 批量添加生产作业
   * @param {Object}  *
   */
  addBatch(params) {
    return zhreq.post('v3/agriculturalTask/agriculturalWorkType/addBatch', params);
  },
  /**
   * @description: 删除生产作业
   * @param {Object}  *
   */
  del(params) {
    return zhreq.post('/v3/agriculturalTask/agriculturalWorkType/delListByNo', {
      noList: params,
      farmingTypeNo: sessionStorage.farmingTypeNo,
    });
  }
};
